<!--app/views/pages/_time_with_locals.html.erb-->
<div class="time-with-locals">
  <h3><%= title %></h3>
  <p>当前时间: <%= current_time %></p>
  <p>当前日期: <%= current_date %></p>
  <p>格式化时间: <%= formatted_time %></p>
  
  <% if show_details %>
    <p>详细信息: <%= details %></p>
  <% end %>
</div>
